package com.xiaoge.biz.service.impl;

import com.xiaoge.biz.entity.Consumer;
import com.xiaoge.biz.mapper.ConsumerMapper;
import com.xiaoge.biz.service.ConsumerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaoge
 * @since 2021-03-21
 */
@Service
public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> implements ConsumerService {
    @Autowired
    private ConsumerMapper consumerMapper;
    @Override
    public Consumer add(Consumer consumer) {
        consumerMapper.insert(consumer);
        return consumer;
    }
}
